package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StationDayKpiMapper;
import com.ruoyi.system.domain.StationDayKpi;
import com.ruoyi.system.service.IStationDayKpiService;

/**
 * 电站日数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-19
 */
@Service
public class StationDayKpiServiceImpl implements IStationDayKpiService 
{
    @Autowired
    private StationDayKpiMapper stationDayKpiMapper;

    /**
     * 查询电站日数据
     * 
     * @param id 电站日数据主键
     * @return 电站日数据
     */
    @Override
    public StationDayKpi selectStationDayKpiById(Long id)
    {
        return stationDayKpiMapper.selectStationDayKpiById(id);
    }

    /**
     * 查询电站日数据列表
     * 
     * @param stationDayKpi 电站日数据
     * @return 电站日数据
     */
    @Override
    public List<StationDayKpi> selectStationDayKpiList(StationDayKpi stationDayKpi)
    {
        return stationDayKpiMapper.selectStationDayKpiList(stationDayKpi);
    }

    /**
     * 新增电站日数据
     * 
     * @param stationDayKpi 电站日数据
     * @return 结果
     */
    @Override
    public int insertStationDayKpi(StationDayKpi stationDayKpi)
    {
        return stationDayKpiMapper.insertStationDayKpi(stationDayKpi);
    }

    /**
     * 修改电站日数据
     * 
     * @param stationDayKpi 电站日数据
     * @return 结果
     */
    @Override
    public int updateStationDayKpi(StationDayKpi stationDayKpi)
    {
        return stationDayKpiMapper.updateStationDayKpi(stationDayKpi);
    }

    /**
     * 批量删除电站日数据
     * 
     * @param ids 需要删除的电站日数据主键
     * @return 结果
     */
    @Override
    public int deleteStationDayKpiByIds(Long[] ids)
    {
        return stationDayKpiMapper.deleteStationDayKpiByIds(ids);
    }

    /**
     * 删除电站日数据信息
     * 
     * @param id 电站日数据主键
     * @return 结果
     */
    @Override
    public int deleteStationDayKpiById(Long id)
    {
        return stationDayKpiMapper.deleteStationDayKpiById(id);
    }
}
